/**
 * Copyright &copy; 2012-2017 <a href="http://minglisoft.cn">HongHu</a> All rights reserved.
 */
package com.honghu.cloud.feign;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.honghu.cloud.dto.AccessoryDto;

/**
 * 附件feign调用类
 * @author Administrator
 *
 */
@FeignClient(name="honghu-file-service" ,path="/accessory")
public interface AccessoryFeignClient{

	
	/**
	 * 根据id查询附件信息
	 * @param congelationDto
	 * @return
	 */
	@RequestMapping(value = "/apiForFeign/selectByPrimaryKey", method = RequestMethod.GET)
	public AccessoryDto selectByPrimaryKey(@RequestParam("id") Long id);
	
	
	/**
	 * 根据商品id查询商品图片集合
	 * @param id 商品id
	 * @return
	 */
	@RequestMapping(value = "/apiForFeign/getGoodsPhotosByAccessoryId", method = RequestMethod.GET)
	List<AccessoryDto> getGoodsPhotosByAccessoryId(@RequestParam("id")Long id);
	
	
	@RequestMapping(value = "/apiForFeign/saveEntity", method = RequestMethod.POST)
	public void saveEntity(@RequestParam("obj")AccessoryDto obj);
}